package com.machine.filling.db.modle;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2018/5/26 0026.
 * 异常订单
 */
@Entity(nameInDb = "exceptionOrder")
public class ExceptionOrderModle implements Serializable {

    private static final long serialVersionUID = 560732626964510598L;

    @Id(autoincrement = true)
    private Long id;

    /**
     * 流水号
     */
    @Property
    private String machineFlowNum;

    /**
     * 订单状态 :1正常订单 2异常订单
     */
    @Property
    private String isNormal;

    /**
     * 油机编号
     */
    private String machineNum;
    /**
     * 订单编号
     */
    @Property
    private String orderNum;
    /**
     * 油罐id
     */
    @Property
    private String oilPotId;
    /**
     * 油枪编号
     */
    @Property
    private String oilGunNum;
    /**
     * 令牌
     */
    @Property
    private String token;
    /**
     * 油枪id
     */
    @Property
    private String oilGunId;
    /**
     * 油机id
     */
    @Property
    private String machineId;
    /**
     * 油品单价
     */
    @Property
    private String Price;
    /**
     * 加油数量
     */
    @Property
    private String mlAmount;
    /**
     * 油品id
     */
    @Property
    private String oilTypeId;
    /**
     * 促销价
     */
    @Property
    private String cuPrice;
    /**
     * 油罐编号
     */
    @Property
    private String oilPotNum;
/**************************************************************************************/
    //预约订单独有字段-----
    /**
     * 最终加油金额
     */
    @Property
    private String usePrice;
    /**
     * 油品名称
     */
    @Property
    private String oilTypeName;

    //------预约订单独有字段

/**************************************************************************************/

    //油卡加油订单独有字段-----
    /**
     * 实付总金额
     */
    @Property
    private String amount;
    /**
     * 加油时间 时间戳
     */
    @Property
    private long createD;
    /**
     * 优惠总金额
     */
    @Property
    private String discountPrice;
    /**
     * 商家id
     */
    @Property
    private String sellerId;
    /**
     * 油卡id
     */
    @Property
    private String oilCardId;

    //-----油卡加油订单独有字段
/*****************************************************************************************/
    //订单界面显示所需字段-----------
    /**
     * 油卡类型  1用户卡,2员工卡
     */
    @Property
    private String oilCardType;
    /**
     * 串口号
     */
    @Property
    private String portNum;
    /**
     * 油卡编号
     */
    @Property
    private String oilCardNum;
    /**
     * 用户名称
     */
    @Property
    private String customName;
    /**
     * 应收金额
     */
    @Property
    private String fuelMoney;
    /**
     * 订单支付状态 1未支付  2已支付未写卡(不再使用)  3已支付
     */
    @Property
    private String payState;
    /**
     * 支付方式 1支付宝 2微信 3现金 4油卡 5预约
     */
    @Property
    private String payMode;

    /**
     * 是否预约 1预约 0未预约
     */
    @Property
    private String orderType;
    /**
     * 是否上传  0 未上传 1已上传
     */
    @Property
    private String uploadState;
    /**
     * 异常原因
     */
    @Property
    private String reason;
    /**
     * 是否异常
     */
    @Property
    private boolean isError;
    @Generated(hash = 1866449544)
    public ExceptionOrderModle(Long id, String machineFlowNum, String isNormal,
            String machineNum, String orderNum, String oilPotId, String oilGunNum,
            String token, String oilGunId, String machineId, String Price, String mlAmount,
            String oilTypeId, String cuPrice, String oilPotNum, String usePrice,
            String oilTypeName, String amount, long createD, String discountPrice,
            String sellerId, String oilCardId, String oilCardType, String portNum,
            String oilCardNum, String customName, String fuelMoney, String payState,
            String payMode, String orderType, String uploadState, String reason,
            boolean isError) {
        this.id = id;
        this.machineFlowNum = machineFlowNum;
        this.isNormal = isNormal;
        this.machineNum = machineNum;
        this.orderNum = orderNum;
        this.oilPotId = oilPotId;
        this.oilGunNum = oilGunNum;
        this.token = token;
        this.oilGunId = oilGunId;
        this.machineId = machineId;
        this.Price = Price;
        this.mlAmount = mlAmount;
        this.oilTypeId = oilTypeId;
        this.cuPrice = cuPrice;
        this.oilPotNum = oilPotNum;
        this.usePrice = usePrice;
        this.oilTypeName = oilTypeName;
        this.amount = amount;
        this.createD = createD;
        this.discountPrice = discountPrice;
        this.sellerId = sellerId;
        this.oilCardId = oilCardId;
        this.oilCardType = oilCardType;
        this.portNum = portNum;
        this.oilCardNum = oilCardNum;
        this.customName = customName;
        this.fuelMoney = fuelMoney;
        this.payState = payState;
        this.payMode = payMode;
        this.orderType = orderType;
        this.uploadState = uploadState;
        this.reason = reason;
        this.isError = isError;
    }
    @Generated(hash = 497782916)
    public ExceptionOrderModle() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getMachineFlowNum() {
        return this.machineFlowNum;
    }
    public void setMachineFlowNum(String machineFlowNum) {
        this.machineFlowNum = machineFlowNum;
    }
    public String getIsNormal() {
        return this.isNormal;
    }
    public void setIsNormal(String isNormal) {
        this.isNormal = isNormal;
    }
    public String getMachineNum() {
        return this.machineNum;
    }
    public void setMachineNum(String machineNum) {
        this.machineNum = machineNum;
    }
    public String getOrderNum() {
        return this.orderNum;
    }
    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }
    public String getOilPotId() {
        return this.oilPotId;
    }
    public void setOilPotId(String oilPotId) {
        this.oilPotId = oilPotId;
    }
    public String getOilGunNum() {
        return this.oilGunNum;
    }
    public void setOilGunNum(String oilGunNum) {
        this.oilGunNum = oilGunNum;
    }
    public String getToken() {
        return this.token;
    }
    public void setToken(String token) {
        this.token = token;
    }
    public String getOilGunId() {
        return this.oilGunId;
    }
    public void setOilGunId(String oilGunId) {
        this.oilGunId = oilGunId;
    }
    public String getMachineId() {
        return this.machineId;
    }
    public void setMachineId(String machineId) {
        this.machineId = machineId;
    }
    public String getPrice() {
        return this.Price;
    }
    public void setPrice(String Price) {
        this.Price = Price;
    }
    public String getMlAmount() {
        return this.mlAmount;
    }
    public void setMlAmount(String mlAmount) {
        this.mlAmount = mlAmount;
    }
    public String getOilTypeId() {
        return this.oilTypeId;
    }
    public void setOilTypeId(String oilTypeId) {
        this.oilTypeId = oilTypeId;
    }
    public String getCuPrice() {
        return this.cuPrice;
    }
    public void setCuPrice(String cuPrice) {
        this.cuPrice = cuPrice;
    }
    public String getOilPotNum() {
        return this.oilPotNum;
    }
    public void setOilPotNum(String oilPotNum) {
        this.oilPotNum = oilPotNum;
    }
    public String getUsePrice() {
        return this.usePrice;
    }
    public void setUsePrice(String usePrice) {
        this.usePrice = usePrice;
    }
    public String getOilTypeName() {
        return this.oilTypeName;
    }
    public void setOilTypeName(String oilTypeName) {
        this.oilTypeName = oilTypeName;
    }
    public String getAmount() {
        return this.amount;
    }
    public void setAmount(String amount) {
        this.amount = amount;
    }
    public long getCreateD() {
        return this.createD;
    }
    public void setCreateD(long createD) {
        this.createD = createD;
    }
    public String getDiscountPrice() {
        return this.discountPrice;
    }
    public void setDiscountPrice(String discountPrice) {
        this.discountPrice = discountPrice;
    }
    public String getSellerId() {
        return this.sellerId;
    }
    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }
    public String getOilCardId() {
        return this.oilCardId;
    }
    public void setOilCardId(String oilCardId) {
        this.oilCardId = oilCardId;
    }
    public String getOilCardType() {
        return this.oilCardType;
    }
    public void setOilCardType(String oilCardType) {
        this.oilCardType = oilCardType;
    }
    public String getPortNum() {
        return this.portNum;
    }
    public void setPortNum(String portNum) {
        this.portNum = portNum;
    }
    public String getOilCardNum() {
        return this.oilCardNum;
    }
    public void setOilCardNum(String oilCardNum) {
        this.oilCardNum = oilCardNum;
    }
    public String getCustomName() {
        return this.customName;
    }
    public void setCustomName(String customName) {
        this.customName = customName;
    }
    public String getFuelMoney() {
        return this.fuelMoney;
    }
    public void setFuelMoney(String fuelMoney) {
        this.fuelMoney = fuelMoney;
    }
    public String getPayState() {
        return this.payState;
    }
    public void setPayState(String payState) {
        this.payState = payState;
    }
    public String getPayMode() {
        return this.payMode;
    }
    public void setPayMode(String payMode) {
        this.payMode = payMode;
    }
    public String getOrderType() {
        return this.orderType;
    }
    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }
    public String getUploadState() {
        return this.uploadState;
    }
    public void setUploadState(String uploadState) {
        this.uploadState = uploadState;
    }
    public String getReason() {
        return this.reason;
    }
    public void setReason(String reason) {
        this.reason = reason;
    }
    public boolean getIsError() {
        return this.isError;
    }
    public void setIsError(boolean isError) {
        this.isError = isError;
    }


    //-----------订单界面显示所需字段
/***********************************************************************************/


}
